import { useDark, useToggle } from '@vueuse/core'

const vueuseColorScheme = localStorage.getItem('vueuse-color-scheme')

const isDark = useDark()
const toggleDark = useToggle(isDark)

if (vueuseColorScheme === null) {
  isDark.value = false
}

export { isDark, toggleDark }
